import EmitterTarget from "./EmitterTarget";
export default class EmitterEvent {
  public type: string = "";
  // public type: string | undefined;//不能为undefined类型
  public currentTarget: EmitterTarget | null = null; //没有初值就是null
  public target: EmitterTarget | null = null;
  public data: any;
  [key: string]: any;
  constructor(type: string, data: any = null) {
    this.type = type;
    this.data = data;
  }
}
